Vue.component("top-tab",{
    template:`
      <!-- 这个是top-tab -->
      <div class="top-tab">
            <div class="left">
                <ul class="time">
                    <li class="date">{{date}}</li>
                    <li class="month">{{month}}</li>
                </ul>
                <div class="shuxian"></div>
                <div class="title">
                    <h2>{{hello}}</h2>
                </div>
            </div>
            <div class="right">
                <img src="./image/touxiang.png" v-on:click="$emit('touxiang_dianji',4)">
            </div>
        </div>
    `,
    data(){
      return {
  
      }
    },
    props:['date','month','hello','touxiang']
    ,
    methods:{
        touxiang_dianji(){
            this.linum = 4;
        },
    }
  })